package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.qc.common.DateUtil;

public class SecretaryVideoEntity extends BaseEntity {

	private long videoId;//自增长id
	private long userId;//用户id
	private int readCount;//阅读量
	private String video;//视频地址
	private String modifiedTime;//修改时间
	
	public static SecretaryVideoEntity getInstance(ResultSet rs) throws SQLException {
		SecretaryVideoEntity entity = new SecretaryVideoEntity();

		entity.setVideoId(rs.getLong("video_id"));
		entity.setUserId(rs.getLong("user_id"));
		entity.setReadCount(rs.getInt("read_count"));
		entity.setVideo(rs.getString("video"));
		entity.setModifiedTime(DateUtil.timestampParseString(rs.getTimestamp("modified_video_time")));

		return entity;
	}
	
	public long getVideoId() {
		return videoId;
	}
	public void setVideoId(long videoId) {
		this.videoId = videoId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public int getReadCount() {
		return readCount;
	}
	public void setReadCount(int readCount) {
		this.readCount = readCount;
	}
	public String getVideo() {
		return video;
	}
	public void setVideo(String video) {
		this.video = video;
	}
	public String getModifiedTime() {
		return modifiedTime;
	}
	public void setModifiedTime(String modifiedTime) {
		this.modifiedTime = modifiedTime;
	}
	
	
}
